import request from "@/utils/request";

//POST / api / mobile / questionnaire / list 问卷调查
export function survey_list(query) {
  //问卷列表查询
  return request({
    url: "/active/mobile/questionnaire/list",
    method: "post",
    params: query
  });
}
//POST /api/mobile/questionnaire/addBrowseNum
export function addBrowseNum(query) {
  //增加一次浏览数
  return request({
    url: "/active/mobile/questionnaire/addBrowseNum",
    method: "post",
    params: query
  });
}
///api/mobile/questionnaireAns/save
//POST /api/mobile/questionnaireUserans/save
export function servey_save(query) {
  //提交问卷
  return request({
    url: "/active/mobile/questionnaireUserans/save",
    method: "post",
    params: query
  });
}
//POST /api/mobile/questionnaire/findById 根据Id查询Questionnaire

export function servey_findById(query) {
  //进入问卷详情
  return request({
    url: "/active/mobile/questionnaire/findById",
    method: "post",
    params: query
  });
}
// api/mobile/questionnaire/listMyPartake  我参与的问卷
export function servey_listMyPartake(query) {
  //进入问卷详情
  return request({
    url: "/active/mobile/questionnaire/listMyPartake",
    method: "post",
    params: query
  });
}
///api/mobile/questionnaire/addBrowseNum  问卷阅读一次
export function servey_addBrowseNum(query) { //进入问卷详情
         return request({
           url: "/active/mobile/questionnaire/addBrowseNum",
           method: "post",
           params: query
         });
       }
